﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Design;

namespace ProgNetComponents.Design.Designers
{
    /// <summary>
    /// Designer for component with "Edit Items" action
    /// </summary>
    public class CollectionComponentDesigner : ComponentDesigner
    {
        /// <summary>
        /// Creates CollectionComponentDesigner instance
        /// </summary>
        public CollectionComponentDesigner()
            : base()
        {

        }
        /// <summary>
        /// GEts collection of actions for this component
        /// </summary>
        public override DesignerActionListCollection ActionLists
        {
            get
            {
                DesignerActionListCollection l = new DesignerActionListCollection();
                DesignerActionList list = new DesignerActionList(this.Component);
                l.Add(new ActionLists.EditItemsActionList(this, this.Component));
                return l;
            }
        }
    }
}
